package com.ruoyi.system.wnjk.service.impl;




import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.wnjk.domain.dto.PhysicalDTO;
import com.ruoyi.system.wnjk.domain.po.Physical;
import com.ruoyi.system.wnjk.domain.po.PhysicalOrder;
import com.ruoyi.system.wnjk.domain.po.PhysicalPackage;
import com.ruoyi.system.wnjk.mapper.PhysicalMapper;
import com.ruoyi.system.wnjk.service.IPhysicalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PhysicalServiceImpl extends ServiceImpl<PhysicalMapper, Physical> implements IPhysicalService {
    @Autowired
    private PhysicalMapper physicalMapper;

    @Override
    public List<Physical> listSearch(PhysicalDTO physicalDTO) {
        return physicalMapper.listSearch(physicalDTO);
    }


    /**
     * 新增体检内容（套餐信息）
     *
     * @param physicalPackage 体检内容（套餐信息）
     * @return 结果
     */
    @Override
    public int insertWnjkPhysicalExaminationPackage(PhysicalPackage physicalPackage)
    {
        return physicalMapper.insertWnjkPhysicalExaminationPackage(physicalPackage);
    }

    /**
     * 修改体检内容（套餐信息）
     *
     * @param physicalPackage 体检内容（套餐信息）
     * @return 结果
     */
    @Override
    public int updateWnjkPhysicalExaminationPackage(PhysicalPackage physicalPackage)
    {
        return physicalMapper.updateWnjkPhysicalExaminationPackage(physicalPackage);
    }

    /**
     * 批量删除体检内容（套餐信息）
     *
     * @param ids 需要删除的体检内容（套餐信息）主键
     * @return 结果
     */
    @Override
    public int deleteWnjkPhysicalExaminationPackageByIds(Long[] ids)
    {
        return physicalMapper.deleteWnjkPhysicalExaminationPackageByIds(ids);
    }

    /**
     * 删除体检内容（套餐信息）信息
     *
     * @param id 体检内容（套餐信息）主键
     * @return 结果
     */
    @Override
    public int deleteWnjkPhysicalExaminationPackageById(Long id)
    {
        return physicalMapper.deleteWnjkPhysicalExaminationPackageById(id);
    }

    /**
     * 查询体检内容（套餐信息）
     *
     * @param id 体检内容（套餐信息）主键
     * @return 体检内容（套餐信息）
     */
    @Override
    public Physical selectWnjkPhysicalExaminationPackageById(Long id)
    {
        return physicalMapper.selectWnjkPhysicalExaminationPackageById(id);
    }


    @Override
    public List<Physical> selectWnjkPhysicalExaminationPackageByHospitalId(Long hospitalId) {
        return physicalMapper.selectWnjkPhysicalExaminationPackageByHospitalId(hospitalId);
    }


}
